<!DOCTYPE html>
<html>
<head lang="en">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no"/>
    <link rel="shortcut icon" href="img/smlogo.png" type="image/x-icon">
    <meta charset="UTF-8">
    <title>Pulu-评论</title>
    <link rel="stylesheet" href="css/textareapage.css"/>
	<link rel="stylesheet" href="css/swiper.min.css">
	<link rel="stylesheet" href="css/swiper_change.css"/>
    <link rel="stylesheet" href="css/index2.css"/>
    <style>
        .cmnt_fixed.callback{
            display:block;
        }
    </style>
</head>
<body class=" experiment-lookup_bar-on gating-feed_switcher_bar-on mweb  gating-new_mweb_header_logged_out-off" style="background: #fff">
<!--评论输入区-->
<div class="cmnt_fixed callback">
    <div class="th_td">
        <a class="cmnt_cancel" id="cancelbtn">取消</a>
        <a class="cmnt_smt none_cmnt" id="sendcommentbtn">确定</a>
    </div>
    <div class="cmnt_border">
        <textarea class="cmnt_textarea" id="commentinput" placeholder="说说你的看法"></textarea>
        <div class="cmnt_opbox">
            <div class="cmnt_tabbtn_wrap">
                <a id="facebtn" class="cmnt_tabbtn j_cmnt_tabbtn j_tabbtn_face">
                    <span class="cmnt_tabbtn_icon"></span>
                </a>
            </div>

        </div>
    </div>
    <div class="swiper-container" style="display:none;">
        <div class="swiper-wrapper">
            <div class="swiper-slide"  id="zerofacepage">
            </div>
            <div class="swiper-slide" id="onefacepage">
            </div>
            <div class="swiper-slide" id="twofacepage">
            </div>
        </div>
        <div class="swiper-pagination swiper-pagination-clickable swiper-pagination-bullets">
            <span class="swiper-pagination-bullet swiper-pagination-bullet-active"></span>
            <span class="swiper-pagination-bullet"></span>
            <span class="swiper-pagination-bullet"></span>
        </div>
    </div>
</div>

<script src="js/jquery-1.11.3.js"></script>
<script src="js/jquery.cookie.js"></script>
<script src="js/tohref.js"></script>
<script src="ftnjs/urlnote.js"></script>
<script src="ftnjs/swiper.jquery.min.js"></script>
<script src="ftnjs/sendfaceftn.js"></script>
<script src="js/comment.js"></script>
<!--插入表情及按钮操作-->
<script>
    //弹出表情
    $("#facebtn").click(function(){
        if($(".swiper-container").css("display")==="block"){
            $(".swiper-container").css("display","none");
            $("#keybordbtn").css("display","none");
            $("#facebtn").css("display","block");
            $("#commentinput").focus();
        }else{
            $(".swiper-container").css("display","block");
            $("#keybordbtn").css("display","block");
            //swiper
            if(!mySwiper){
                mySwiper = new Swiper ('.swiper-container', {
                    paginationClickable: true,
                    touchRatio : 1,
                    initialSlide :0,
                    pagination: '.swiper-pagination'
                })
            }
        }
    });
    //插入表情字符
    function sendface(e){
        $("#sendcommentbtn").attr("class","cmnt_smt");
        var face=e.dataset.key;
        $("#commentinput").insertAtCaret(face);
		$("#commentinput").blur();
    }
</script>
</body>
</html>